<jsp:include page="warning.jsp"  flush="true" />
<div id="menuwrapper">
	 <% 
		session = request.getSession();
		if( session.getAttribute( "logged" ) == "true" ){
			%>
	<div class="loggedin">Welkom <% out.println(session.getAttribute("gebruikersnaam"));%>!<br />
		<a href="UserServlet?page=logout">Uitloggen</a>
	</div>
   		<%}%>
	
	<div id="header"> <a href="SensorServlet?page=home"><img src="images/logo.png" border="0" class="logo"></a> </div>
	
	<div id="centerer">
		<a href="" id="dialog_link" class="ui-state-default ui-corner-all"><span></span></a>
		<a href="SensorServlet?page=home" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Home</a>
   		<a href="GraphServlet" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Grafiek</a>
   		<%
   		//rollID 1 = admin
   		if(Integer.parseInt(session.getAttribute( "rollID" ).toString()) == 1){
   			%>
   			<a href="CameraServlet" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Camera</a>
   			<a href="WarningServlet" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Warning</a> 
			<a href="LogServlet?page=top10i" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Logs</a> 
   			<a href="UserServlet?page=user" id="dialog_link" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-circle-arrow-e"></span>Gebruikers</a>
   			<%
   		}
   		%>
	</div>
</div>